Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_Motors: Tricopter: fix actuator indexing #26313

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Feb 24, 2024

This corrects the tricopter actuator indexing it was off by one, confusingly AP_MOTORS_MOT_1 = 0. This fix means it lines up with the indexing used by quadplanes to output in forward flight in the output_motor_mask method:

void AP_MotorsMulticopter::output_motor_mask(float thrust, uint16_t mask, float rudder_dt)

This also corrects to zero the _actuator in the SpoolState::SHUT_DOWN case so the slewing picks up again in the correct spot.

Nether of these bugs are a issue unless your using a slew limit on the outputs with MOT_SLEW_UP_TIME and MOT_SLEW_DN_TIME.

@IamPete1
Copy link
Member Author

Still flys in a circle:
image

@IamPete1 IamPete1 merged commit 744df1c into ArduPilot:master Feb 27, 2024
92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants